package iscript.coreFramework 
{
	import flash.display.Stage;
	import flash.system.Capabilities;
	
	public class SWFInfo 
	{	
		public function SWFInfo() {}	
		
		static private var _stage:Stage;
        static private var _startUpTime:Date;
				
		static public function  initialize(stage:Stage):void { 
			_stage = stage; 
			_startUpTime = new Date();		 
			}
		
		static public function get stage():Stage { return _stage;}
		 
		static public function get fps():int {return  _stage.frameRate;}		     
		static public function get startUpTime():Date { return _startUpTime; }

		static public function get about():String{
			     return "@author raymond";
				}
			
		static  public function get inFlashIDE():Boolean{
                 return Capabilities.playerType == "External";
                }
		static  public function get inAIR():Boolean{
				return Capabilities.playerType == "Desktop";
				}
		static  public function get inProjector():Boolean{
				return Capabilities.playerType == "StandAlone";
				}
		static  public function get inBrowser():Boolean{
				return Capabilities.playerType == "PlugIn" || Capabilities.playerType == "ActiveX";
				}
	}
}